package com.hdoit.ares.logical.ser.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.ares.logical.ser.dao.IStaffDao;
import com.hdoit.ares.logical.ser.mapper.StaffMapper;
import com.hdoit.ares.logical.ser.model.Staff;
import com.hdoit.ares.logical.viewmodel.ser.StaffSearch;
/**
 * @author      lvsi
 * @email       
 * @createtime  2017年11月29日 09:08:49
 * @comment
 */
@Component
public class StaffDaoImpl extends SuperDao<Staff> implements IStaffDao{

	private StaffMapper staffMapper;

	public StaffMapper getStaffMapper() {
		return staffMapper;
	}

	@Resource
	public void setStaffMapper(StaffMapper staffMapper) {
		this.staffMapper = staffMapper;
	}

	@Override
	public int queryStaffCountById(StaffSearch staffSearch, String loginId) {
		
		return staffMapper.queryStaffCountById(staffSearch, loginId);
	}

	@Override
	public List<Staff> queryStaffListById(StaffSearch staffSearch,PagerModel pagerModel, String loginId) {
		
		return staffMapper.queryStaffListById(staffSearch, pagerModel, loginId);
	}

	@Override
	public List<Staff> queryStaffById(String loginId) {
	
		return staffMapper.queryStaffById(loginId);
	}

	@Override
	public List<Staff> queryAllStaff(StaffSearch staffSearch,PagerModel pagerModel) {
		
		return staffMapper.queryAllStaff(staffSearch, pagerModel);
	}

	@Override
	public int queryAllStaffCount(StaffSearch staffSearch,PagerModel pagerModel) {
		
		return staffMapper.queryAllStaffCount(staffSearch, pagerModel);
	}

}
